<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div style="width:500px;height:500px;background-color:#ccc;">
        <input type="button" value="button1" name="input" id="" dir="111" abc='222'>
    </div>
    
    <script>
        window.onload = function(){
            var dom = document.getElementsByTagName('div')[0];
            dom.addEventListener('click',function(e){
                if(e.target == this){
                    console.log('this');
                    return;
                }
                console.log(e.target)
            },false)
        }
    </script>
</body>
</html>